/**
 * 
 */
package sob.netcode.refstyle;

/**
 * @author blackcore
 * @date 2013-11-15
 * @describe
 */
public class BadSwap {
	public void Swap(int a, int b) {
		System.out.println(String.format("swap before:\ta%d,b%d",a,b));
		int tmp = a;
		a = b;
		b = tmp;
		System.out.println(String.format("swap result:\ta%d,b%d",a,b));
	}

	public void Swap(Integer A, Integer B) {
		System.out.println(String.format("swap before:\tA%d,B%d",A,B));
		Integer tmp = A;
		A = B;
		B= tmp;
		System.out.println(String.format("swap result:\tA%d,B%d",A,B));
	}
}
